//
//  UploadManager.h
//  APIRequest
//
//  Created by 侯伟 on 2019/5/23.
//  Copyright © 2019 侯伟. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RequestConfig.h"
#import "UploadFile.h"

NS_ASSUME_NONNULL_BEGIN

@interface UploadManager : NSObject


/**
 *  创建单例对象
 */
+ (instancetype)sharedInstance;

/**
 设置网络请求头部信息
 
 @param requestHeader -头部信息
 */
- (void)setRequestHeader:(NSDictionary<NSString*,NSString*> *)requestHeader;


/**
 *  文件上传
 */

- (void)upload:(NSString *)url params:(NSDictionary *)params fileConfigs:(NSArray<UploadFile *> *)fileConfigs callback:(RequestResult)callback;

@end

NS_ASSUME_NONNULL_END
